package top.songxs.gmall.product.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.product.service.BloomFilterService;

@RestController
@RequestMapping("admin/product")
public class BloomFilterController {
    @Autowired
    private BloomFilterService bloomFilterService;

    @GetMapping("resetBloomFilter")
    public Result resetBloomFilter() {
        bloomFilterService.resetBloomFilter();
        return Result.ok("布隆过滤器重置成功");
    }
}
